682f698f8a66df936e9eed663cb4504e0e4a9ce3,alien4cloud-rest-api/src/main/java/alien4cloud/rest/service/ServiceResourceController.java,ServiceResourceController,update,#String#UpdateServiceResourceRequest#,84

Before Change


    @Audit
    public RestResponse<Void> update(@ApiParam(value = "Id of the service to update.", required = true) @PathVariable @Valid @NotEmpty String id,
            @ApiParam(value = "ServiceResource update request, representing the fields to updates and their new values.", required = true) @Valid @NotEmpty @RequestBody UpdateServiceResourceRequest request) {
        serviceResourceService.update(id, request.getName(), request.getVersion(), request.getDescription(), request.getNodeInstance(),
                request.getLocationIds());
        return RestResponseBuilder.<Void> builder().build();
    }

After Change


            @ApiParam(value = "Id of the service to update.", required = true) @PathVariable @Valid @NotEmpty String id,
            @ApiParam(value = "ServiceResource update request, representing the fields to updates and their new values.", required = true) @Valid @NotEmpty @RequestBody UpdateServiceResourceRequest request) {
        try {
            serviceResourceService.update(id, request.getName(), request.getVersion(), request.getDescription(), request.getNodeInstance().getType(),
                    request.getNodeInstance().getTypeVersion(), request.getNodeInstance().getProperties(), request.getNodeInstance().getCapabilities(),
                    request.getNodeInstance().getAttributeValues(), request.getLocationIds());
            return RestResponseBuilder.<ConstraintInformation> builder().build();
        } catch (ConstraintViolationException | ConstraintValueDoNotMatchPropertyTypeException e) {